<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function fn(a){
        var big = 0;
      var sml = 0;
      var num = 0;
      var other = 0;

      for (var i = 0; i <= a.length - 1; i++) {
        if (a.charAt(i) >= "A" && a.charAt(i) <= "Z") {
          big++;
        } else if (a.charAt(i) >= "a" && a.charAt(i) <= "z") {
          sml++;
        } else if (a.charAt(i) >= "0" && a.charAt(i) <= "9") {
          num++;
        } else {
          other++;
        }
      }
      return (`大写字母有${big}个，小写字母有${sml}个，数字有${num}个，其他有${other}个`)
      }
      
      
      document.write(fn( "Jay Chou love you! 000") );
        
     
    </script>
  </body>
</html>
